//
//  MvCollectionViewCell.m
//  23-QQMusic
//
//  Created by dllo on 16/8/15.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "MvCollectionViewCell.h"
#import "MvList.h"
#import "UIImageView+WebCache.h"
@interface MvCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picImageView;
@property (weak, nonatomic) IBOutlet UILabel *mvTitleLable;
@property (weak, nonatomic) IBOutlet UILabel *mvDescLabel;
@end
@implementation MvCollectionViewCell
- (void)setMvList:(MvList *)mvList {
    _mvTitleLable.text = [NSString stringWithFormat:@"%@-%@", mvList.mvtitle, mvList.singername];
    _mvDescLabel.text = mvList.mvdesc;
    if (mvList.picurl.length != 0) {
        [_picImageView sd_setImageWithURL:[NSURL URLWithString:mvList.picurl]];
    } else {
        NSString *imageURL = [NSString stringWithFormat:@"http://shp.qpic.cn/qqvideo_ori/0/%@_360_204/0?max_age=259200", mvList.vid];
        [_picImageView sd_setImageWithURL:[NSURL URLWithString:imageURL]];
    }
}
@end
